package com.smartfactory.sail.vo.cust;

import com.baomidou.mybatisplus.annotation.TableField;
import com.smartfactory.sail.entity.PurchaseRecord;
import com.smartfactory.sail.entity.enums.CustCooperationStatusEnum;
import com.smartfactory.sail.entity.enums.CustStatusEnum;
import com.smartfactory.sail.vo.purchase.StatisticsPurchaseByCustResp;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author 王巨壁
 * @title: SupplierInfoResp
 * @projectName smart-sail
 * @description: 供应商详情
 * @date 2019/8/2112:27
 */
@Data
public class SupplierInfoResp {



    private Long id;

    @ApiModelProperty(value = "客户编码")
    private String custCode;


    @ApiModelProperty(value = "企业名称")
    @TableField("enterpriseName")
    private String enterpriseName;


    @ApiModelProperty(value = "客户状态0.正常 1：合作中 2：长时间未合作3还未合作,具体参考constants表")
    @TableField("custStatus")
    private CustStatusEnum custStatus;

    @ApiModelProperty(value = "公司办公电话")
    @TableField("companyPhone")
    private String companyPhone;

    @ApiModelProperty(value = "联系地址")
    private String addr;

    @ApiModelProperty(value = "客户联系方式: 联系方式,联系详情|联系方式,联系详情|")
    @TableField("contactsInfo")
    private String contactsInfo;

    @ApiModelProperty(value = "对企业的评价")
    private String valuation;

    @ApiModelProperty(value = "企业关怀次数")
    @TableField("careNum")
    private Integer careNum;

    @ApiModelProperty(value = "最近合作时间")
    @TableField("recentCooperationTime")
    private String recentCooperationTime;

    @ApiModelProperty(value = "合作状态1.还未合作2长时间未合作3合作中")
    @TableField("cooperationStatus")
    private CustCooperationStatusEnum cooperationStatus;

    @ApiModelProperty(value = "合作时间单位年")
    @TableField("cooperationDuration")
    private String cooperationDuration;

    @ApiModelProperty(value = "首次合作时间")
    @TableField("firstCooperationTime")
    private String firstCooperationTime;

    @ApiModelProperty("交易记录")
    private List<PurchaseRecord> list;

    @ApiModelProperty("这个是统计数据")
    private List<StatisticsPurchaseByCustResp> statisByCustId;
}
